const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  website: state => state.common.website,
  token: state => state.user.userInfo && state.user.userInfo.token,
  avatar: state => state.user.userInfo && state.user.userInfo.avatar,
  name: state => state.user.userInfo && state.user.userInfo.name,
  role: state => state.user.userInfo && state.user.userInfo.role,
  menuitems: state => state.permission.menuitems,
  actions: state => state.permission.actions
}
export default getters
